package com.eqxiu.ieditor.interceptor;

import eqxiu.passport.sdk.dto.UserDTO;

public class UserContext {

    public static ThreadLocal<UserDTO> currentUser = new ThreadLocal<UserDTO>();

    public static void setUser(UserDTO user) {
        currentUser.set(user);
    }

    public static UserDTO getUser() {
        return currentUser.get();
    }
}
